// rentry : Repeat entry

#include<stdio.h>
#include<unistd.h>
#include<signal.h>
int a =1,b=1;
int test()
{
  a++;
  sleep(3);
  b++;
  return a+b;
}
void sigcb(int signo)
{
  printf("sigsum = %d\n",test());
}

int main()
{
  signal(SIGINT,sigcb);
  printf("main sum = [%d]\n",test());
  return 0;
}
